/*
 * Copyright 2005-2013 shopxx.net. All rights reserved.
 * Support: http://www.shopxx.net
 * License: http://www.shopxx.net/license
 */
package net.starwifi.duobao.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * Entity - 刮刮乐用户抽奖次数统计
 *
 * @author SHOP++ Team
 * @version 3.0
 */
@Entity
@Table(name = "duob_ggluser")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "duob_GglUser_sequence")
public class GglUser extends BaseEntity {

	private static final long serialVersionUID = -3950317769006303385L;

	/** 访问路径前缀 */
	//private static final String PATH_PREFIX = "/consultation/content";

	/**
	 * 访问路径后缀
	 */
	private static final String PATH_SUFFIX = ".jhtml";
	private  String mobile; //用户电话
	private Long memberId; //用户id
	private Long gglhdId; //活动id
	private String gglhdname; //活动名称
	private Date gainDate; //获取时间
	private Date startDate; //有效开始时间
	private Date endDate; //有效截止时间
    private  int status; //抽奖状态 0未抽 1已抽 2过期
	private int  type; //抽奖方式来源类型 0 刮刮乐登录获取 1 刮刮乐购物奖励 2 大转盘首单奖励 3大转盘积分兑换
	private int hdType; //活动类型 0刮刮乐 1大转盘

	@Column
	@JsonProperty
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column
	@JsonProperty
	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	@Column
	@JsonProperty
	public Long getGglhdId() {
		return gglhdId;
	}

	public void setGglhdId(Long gglhdId) {
		this.gglhdId = gglhdId;
	}

	@Column
	@JsonProperty
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	@Column
	@JsonProperty
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}



	@Column
	@JsonProperty
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column
	@JsonProperty
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	@Column
	@JsonProperty
	public String getGglhdname() {
		return gglhdname;
	}

	public void setGglhdname(String gglhdname) {
		this.gglhdname = gglhdname;
	}
	@Column
	@JsonProperty
	public Date getGainDate() {
		return gainDate;
	}

	public void setGainDate(Date gainDate) {
		this.gainDate = gainDate;
	}

	public int getHdType() {
		return hdType;
	}

	public void setHdType(int hdType) {
		this.hdType = hdType;
	}
}